package com.designpatternspart2.behavioraldesignpatterns.commandpattern;

/**
 *
 * @author Lance
 */
public class DinnerCommand implements Command
{

    private Dinner dinner;

    public DinnerCommand(Dinner dinner)
    {
        this.dinner = dinner;
    }

    @Override
    public void execute()
    {
        getDinner().makeDinner();
    }

    public Dinner getDinner()
    {
        return dinner;
    }

    public void setDinner(Dinner dinner)
    {
        this.dinner = dinner;
    }
}
